]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
userMenu: Update user name on session mode changes
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 11 Dec 2012 16:09:34 +0000 (17:09 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 11 Dec 2012 19:31:46 +0000 (20:31 +0100)
The new privacy panel offers separate settings for the user name
visibility in lock screen and normal mode. The code to support
either setting is already in place, but we need to make sure to
update the user name on session mode changes to pick up the correct
one.

https://bugzilla.gnome.org/show_bug.cgi?id=690049

js/ui/userMenu.js

index dbe2ed66bcdc3b8f01ae5feefd7fc5f634b103bd..cd421f73ce98f598464a6572eb1d6b2d73e469ab 100644 (file)
@@ -593,6 +593,7 @@ const UserMenuButton = new Lang.Class({
 
         this.setSensitive(!Main.sessionMode.isLocked);
         this._updatePresenceIcon();
+        this._updateUserName();
     },
 
     _onDestroy: function() {